package com.scs.application.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.FlowEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityIndexAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;
/**
 * <p>
 * 标签表
 * </p>
 */
@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "标签表")
@TableName("sys_label")
@EntityIndexAnnotation(ux = "code,version")
public class Label extends FlowEntity {
    @EntityFieldAnnotation(
            text = "标签代码",
            length = "30",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String code;
    @EntityFieldAnnotation(
            text = "版本",
            length = "20",
            not_null = true,
            default_value = "1",
            comment = "标签版本"
    )
    private String version;
    @EntityFieldAnnotation(
            text = "标签名称",
            length = "10",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String name;
    @EntityFieldAnnotation(
            text = "类型",
            length = "20",
            not_null = false,
            default_value = "MASO",
            comment = ""
    )
    private String type;
    @EntityFieldAnnotation(
            text = "内容",
            type = EntityFieldType.TEXT,
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String content;
    @EntityFieldAnnotation(
            text = "备注",
            length = "200",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String remark;
}
